//
//  ScoreClient.h
//  iMine
//
//  Created by gaoxiang on 09-3-26.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#define APPLICATION_ID @"3A47369B-ED3B-48FA-A796-EC41F17378A5"
#define APP_URL @"http://www.mac-salon.com/gamedata/imine/services.php?action=%@%@"

@interface ScoreClient : NSObject {
	NSDictionary *levelDataDic;
}
@property(readwrite, retain) NSDictionary *levelDataDic;

+ (id)instance;

+ (void)sendPlayerScoreToServer:(NSString *)playername playedLevel:(int)level elapsedTime:(int)second;
+ (NSDictionary *)getTop10FromServer;
+ (NSString *)requestUrlStringForGetTopScroes;
+ (NSString *)requestUrlStringForSendUserScore:(NSString *)playername gameLevel:(int)level elapsedTime:(int)second;

+ (NSDictionary *)parseDataFromXML:(NSXMLDocument *)doc;

+ (NSDictionary *)gameLevelData;

@end
